﻿<script src="~/Scripts/jquery-easyui-extensions/linkbutton/jeasyui.extensions.linkbutton.setSize.js"></script>

<div class="easyui-panel" data-options="fit:true,border:false" style="padding:20px;">
    <a id="btnTarget" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:false">目标按钮</a>
    <br />
    <br />
    <input name="sizeValue" type="radio" value="small" /> 小尺寸 &nbsp;
    <input name="sizeValue" type="radio" value="large" checked="checked" /> 大尺寸 &nbsp;
    <span style="color:red;">请自行选择要设置给上述 linkbutton 的尺寸</span>
    <br />
    <a id="btnSet" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">设置新尺寸</a>
</div>

<script>
    $(function () {
        $("#btnSet").click(function () {
            var value = $("[name='sizeValue']:checked").val();
            $("#btnTarget").linkbutton("setSize", value);
        });
    });
</script>